package com.ailink.design.pattern.strategy;

import com.ailink.design.pattern.strategy.impl.FlyWithWing;

/**
 * Created by Administrator on 2018/9/21
 */
public class RedheadDuck extends Duck {
    public RedheadDuck() {
        super();
        super.setFlyingStrategy(new FlyWithWing());
    }

    @Override
    public void display() {
        System.out.println("我的头是红色的");
    }
}
